MercadoPago\Woocommerce\Gateways\AbstractGateway B

Total Complexity 80
Dependencies 7
Dependents 19
Total lines 946
Lines of code 492
Logical lines of code 162
Comment lines 269
Methods 43
Properties 12

Methods 43

Method Rating Maintainability Complexity Lines of code
getCredentialExpiredNotice()
A
47 7 35
update_option()
S
55 5 20
processReturnFail()
S
52 4 24
addMissingCredentialsNoticeAsFormField()
S
54 3 21
process_payment()
S
54 3 21
loadMelidataStoreScripts()
S
56 3 20
getAmountAndCurrency()
S
59 3 14
getAmount()
S
61 3 12
getCredentialValidationNoticeOrHidden()
S
55 2 21
getHomologValidateNoticeOrHidden()
S
55 2 21
canAdminLoadScriptsAndStyles()
S
73 3 5
payment_scripts()
S
69 3 8
registerCheckoutScripts()
S
52 1 30
processBlocksCheckoutData()
S
63 3 10
getFeeTitle()
S
61 2 13
canCheckoutLoadScriptsAndStyles()
S
75 2 4
getDiscountField()
S
59 1 15
saveOrderPaymentsId()
S
65 2 9
handleWithRejectPayment()
S
68 2 7
registerDiscountAndCommissionFeesOnCart()
S
75 2 5
loadResearchComponent()
S
60 1 15
getActionableValue()
S
68 2 7
getCommissionField()
S
59 1 15
generate_mp_actionable_input_html()
S
60 1 14
__construct()
S
60 1 13
payment_fields()
S
91 1 2
registerAdminScripts()
S
66 1 10
isAvailable()
S
81 1 3
init_form_fields()
S
81 1 3
get_settings_url()
S
79 1 3
get_connection_url()
S
80 1 3
getRejectedPaymentErrorMessage()
S
75 1 4
webhook()
S
70 1 6
generate_mp_tooltip_selection_html()
S
65 1 10
getFeeText()
S
74 1 4
generate_mp_support_link_html()
S
65 1 10
generate_mp_preview_html()
S
65 1 10
generate_mp_card_info_html()
S
65 1 10
getCheckoutName()
S
81 1 3
validate_fields()
S
82 1 3
generate_mp_checkbox_list_html()
S
66 1 9
generate_mp_toggle_switch_html()
S
64 1 10
generate_mp_config_title_html()
S
65 1 10